import request from '../utils/request.js'

export function featchFacility(query) {
    return request({
        url: '/bms/sensors/current/',
        method: 'get',
        params: query
    })
}

export function formFileFun(data) {
    return request({
        url: '/bms/files/updownload/',
        method: 'post',
        data
    })
}

export function featchHistoryFacility(query) {
    return request({
        url: '/bms/sensors/history/',
        method: 'get',
        params: query
    })
}

// 获取历史数据分析总览

export function featchHistoryAllView(query) {
    return request({
        url: '/analysis-mang/analysis-item/datas/',
        method: 'get',
        params: query
    })
}

// 获取历史数据的项目类型
export function featchDevType(query) {
    return request({
        url: '/analysis-mang/analysis-item/types/',
        method: 'get',
        params: query
    })
}



// 查询传感器VBL11历史波形分析数据总览

export function featchVBLView(query) {
    return request({
        url: '/analysis-mang/vbl11/history/',
        method: 'get',
        params: query
    })
}
// 查询传感器分析项目详细数据类型
export function featchHisDetailType(query) {
    return request({
        url: '/analysis-mang/analysis-item/detail/types/',
        method: 'get',
        params: query
    })
}

// 获取历史数据分析详情
export function featchHistoryADetail(query) {
    return request({
        url: '/analysis-mang/analysis-item/detail/datas/',
        method: 'get',
        params: query
    })
}

// 获取当前设备的健康等级
export function featchCurrentEstate(query) {
    return request({
        url: '/analysis-mang/health/current/',
        method: 'get',
        params: query
    })
}

// 查询传感器分析详细数据列表-卷板机
export function getPlateBlending(query) {
    return request({
        url: '/analysis-mang/analysis-item/detail/datas/plate-blending/',
        method: 'get',
        params: query
    })
}

// 查询传感器分析详细数据-卷板机
export function getPlateBlendingDetail(query) {
    return request({
        url: '/analysis-mang/analysis-item/detail/datas/plate-blending/detail/',
        method: 'get',
        params: query
    })
}

// 查询分钟能耗详情数据
export function getEnergyChartData(query) {
    return request({
        url: '/analysis-mang/analysis-item/detail/datas/energy/',
        method: 'get',
        params: query
    })
}